#ifndef QOUSERCONTROL_H
#define QOUSERCONTROL_H

/**
* @file qousercontrol.h
* @describe QoUserControl
* @author gaoyuelong
* @date 2022/05/04
*/

#include "qousermodel.h"
#include "qouser.h"
#include <QString>
#include <QVector>
#include <QObject>

//处理user相关
class QoUserControl : public QObject
{
    Q_OBJECT
public:
    static QoUserControl* getInstance();

    bool chat(const QString &strToAccount, const QString &strMsg);

signals:
    void signalRecvMsg(const QString &);

private slots:
    void slotRecvMsg(const QJsonObject &);

private:
    QoUserControl();
    QoUserModel *m_pUserModel;
};

#endif // QOUSERCONTROL_H
